var e = getApp();

Component({
    properties: {},
    data: {
        show: !1,
        service_phone: "",
        service_qr_code_src: ""
    },
    lifetimes: {
        attached: function() {
            this.getDatas();
        },
        moved: function() {},
        detached: function() {}
    },
    methods: {
        tapImg: function() {
            var e = [];
            e.push(this.data.service_qr_code_src), wx.previewImage({
                urls: e
            });
        },
        closeWin: function() {
            this.setData({
                show: !1
            });
        },
        getDatas: function() {
            var t = this, s = e.getNetAddresss("plugin.case-library.api.case.get-set");
            e._postNetWork({
                url: s,
                success: function(e) {
                    var s = e.data;
                    1 == s.result ? (wx.setStorageSync("setCaseLibrary", s.data), t.setData({
                        service_phone: s.data.set.service_phone,
                        service_qr_code_src: s.data.set.service_qr_code_src
                    })) : wx.showToast({
                        title: s.msg,
                        icon: "none",
                        duration: 1e3
                    });
                },
                fail: function(e) {
                    console.log(e);
                }
            });
        },
        openWin: function() {
            this.setData({
                show: !0
            });
        }
    },
    check: function() {
        var e = wx.getStorageSync("setCaseLibrary");
        console.log(e, "111121");
    }
});